Skip to content

Conversation

@olavloite
Copy link
Collaborator

The auto_batch_dml connection property enables automatic batching of DML statements, for example when using Hibernate. When this connection variable has been enabled, a JDBC connection will automatically buffer DML statements in memory, and send all buffered DML statements to Spanner as one batch when a query is executed or when the transaction is committed. This can significantly reduce the number of round-trips to Spanner, especially when using an ORM like Hibernate that generates many small single-row DML statements.

The `auto_batch_dml` connection property enables automatic batching of
DML statements, for example when using Hibernate. When this connection
variable has been enabled, a JDBC connection will automatically buffer
DML statements in memory, and send all buffered DML statements to
Spanner as one batch when a query is executed or when the transaction
is committed. This can significantly reduce the number of round-trips
to Spanner, especially when using an ORM like Hibernate that generates
many small single-row DML statements.
@olavloite olavloite requested review from a team as code owners October 12, 2024 07:53
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: spanner Issues related to the googleapis/java-spanner-jdbc API. labels Oct 12, 2024
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels Oct 12, 2024
@olavloite olavloite merged commit 8aa0edb into main Oct 12, 2024
21 checks passed
@olavloite olavloite deleted the document-auto-batch-dml branch October 12, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the googleapis/java-spanner-jdbc API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants